package entity_controllers.options;

import ie.FieldBoard;
import ie.PlayerBoard;
import ie.Shaker;
import dto.Player;
import entity.Account;
import entity_controllers.Option;

public class EndTurnOption extends Option {

	public EndTurnOption(String title) {
		super(title);
	}

	@Override
	public void execute(Player player, FieldBoard gameBoard, PlayerBoard playerList, Shaker shaker) {
		this.disable();
		((Account) player.getAccount()).getOM().getOption(BuyHouseOption.class).disable();
		((Account) player.getAccount()).getOM().getOption(SellHouseOption.class).disable();
	}

	@Override
	public void reset() {
	}

}
